﻿using ConfExpert.Forms.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using DevTeam;

namespace ConfExpert.Forms.Depo
{
    public partial class KumasSatisFiyat : XForm
    {
        public KumasSatisFiyat()
        {
            InitializeComponent();
        }

        private void KumasSatisFiyat_Load(object sender, EventArgs e)
        {
            this.Text = "Kumaş Satış Fiyatları";
            
            gridView1.Init("GetKumasSatisFiyat");
            gridView1.MakeReadOnly("Fiyat");
            gridView1.BestFitColumns();
        }

        private void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.EndEditing();
            int RowHandle = gridView1.FocusedRowHandle;
            ExecuteNonQuery("UpdKumasSatisFiyat", gridView1.SerializeChanges());
            gridView1.RefreshDataSource("GetKumasSatisFiyat");
            gridView1.FocusedRowHandle = RowHandle;
        }
    }
}
